package entity;

import javax.naming.Name;
import java.io.Serializable;
import java.sql.Date;
import java.util.List;

public class User implements Serializable {

	private static final long serialVersionUID = 1L;
	private int id;
	private String phone;//手机号
	private String email;//邮箱
	private String password;//密码
	private String name;//用户名
	private Boolean sex;//性别
	private String img_path;//头像
	private String real_name;//真实姓名
	private String province;
	private String city;
	private String area;

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getArea() {
		return area;
	}

	public void setArea(String area) {
		this.area = area;
	}

	private String school;
	private String grade;

	public User(String phone, String email, String password, String name, String province, String city, String area, String school, String grade) {
		this.phone = phone;
		this.email = email;
		this.password = password;
		this.name = name;
		this.province = province;
		this.city = city;
		this.area = area;
		this.school = school;
		this.grade = grade;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public User(String real_name,String school, String grade){
		this.real_name=real_name;
		this.school=school;
		this.grade=grade;
	}
	public User(String school,String grade){
		this.school=school;
		this.grade=grade;
	}
	public User(String password,String phone,String email,String name){
		this.phone=phone;
		this.password=password;
		this.email=email;
		this.name=name;

	}
	public User(String password,String phone,String email,String name,String school,String grade){
        this.phone=phone;
        this.password=password;
        this.email=email;
        this.name=name;
	    this.school=school;
	    this.grade=grade;
    }

	public User() {
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Boolean getSex() {
		return sex;
	}

	public void setSex(Boolean sex) {
		this.sex = sex;
	}

	public String getImg_path() {
		return img_path;
	}

	public void setImg_path(String img_path) {
		this.img_path = img_path;
	}

	public String getReal_name() {
		return real_name;
	}

	public void setReal_name(String real_name) {
		this.real_name = real_name;
	}

	public String getSchool() {
		return school;
	}

	public void setSchool(String school) {
		this.school = school;
	}

	public String getGrade() {
		return this.grade;
	}

	public void setGrade(String grade) {
		this.grade = grade;
	}

}
